====================================================================================================
IPB3 Modifications
File: /admin/sources/classes/output/publicOutput.php
====================================================================================================

This will let users switch from the full (desktop) skin back to the mobile skin.
For a list of extra user agents to add, see this thread http://www.aqua-soft.org/forum/topic/53567-user-agents/


====================================================================================================
Find: (Around Line 758)
====================================================================================================

		//-----------------------------------------
		// Unlocking a user-agent?
		//-----------------------------------------
		
		if ( isset( $this->request['unlockUserAgent'] ) AND $this->request['unlockUserAgent'] )
		{
			$this->member->updateMySession( array( 'uagent_bypass' => 1 ) );
			
			/* Set cookie */
			IPSCookie::set("uagent_bypass", 1, -1);
		}

====================================================================================================
Replace With:
====================================================================================================

		//-----------------------------------------
		// Unlocking a user-agent?
		//-----------------------------------------

		if ( isset( $this->request['unlockUserAgent'] ) AND $this->request['unlockUserAgent'] )
		{
			$this->member->updateMySession( array( 'uagent_bypass' => 1 ) );
			
			/* Set cookie */
			IPSCookie::set("uagent_bypass", 1, -1);
		}
		else if ( isset( $this->request['unlockUserAgent'] ) )
		{
			$this->member->updateMySession( array( 'uagent_bypass' => 0 ) );

			/* Set cookie */
			IPSCookie::set("uagent_bypass", 0, -1);
		}

====================================================================================================
Add This somewhere in your main skin so users can switch back to mobile.
====================================================================================================

<a href='{parse url="&amp;unlockUserAgent=0" base="public"}'>Mobile</a>